package com.yanqu.road.entity.activity.langyamemorial;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_u_activity_langya_memorial", desc = "琅琊祭奠")
public class LangYaMemorialUserData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "残卷进度值")
    private int progress ;

    @FieldTypeAnnotation(desc = "总建阁次数")
    private int buildTimes;

    @FieldTypeAnnotation(desc = "建阁值/祭奠值")
    private int buildValue;

    @FieldTypeAnnotation(desc = "积分")
    private long score;

    @FieldTypeAnnotation(desc = "黄金阁次数")
    private int bigRewardTimes;

    @FieldTypeAnnotation(desc = "非黄金阁次数：每轮重置")
    private int commonTimes;

    @FieldTypeAnnotation(desc = "长明灯")
    private List<LangYaMemorialLight> lightList;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        if(this.progress != progress) {
            this.progress = progress;
            setUpdateOption();
        }
    }

    public int getBuildTimes() {
        return buildTimes;
    }

    public void setBuildTimes(int buildTimes) {
        if(this.buildTimes != buildTimes) {
            this.buildTimes = buildTimes;
            setUpdateOption();
        }
    }

    public int getBuildValue() {
        return buildValue;
    }

    public void setBuildValue(int buildValue) {
        if(this.buildValue != buildValue) {
            this.buildValue = buildValue;
            setUpdateOption();
        }
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        if(this.score != score) {
            this.score = score;
            setUpdateOption();
        }
    }

    public int getBigRewardTimes() {
        return bigRewardTimes;
    }

    public void setBigRewardTimes(int bigRewardTimes) {
        this.bigRewardTimes = bigRewardTimes;
    }

    public int getCommonTimes() {
        return commonTimes;
    }

    public void setCommonTimes(int commonTimes) {
        if(this.commonTimes != commonTimes) {
            this.commonTimes = commonTimes;
            setUpdateOption();
        }
    }

    public List<LangYaMemorialLight> getLightList() {
        return lightList;
    }

    public void setLightList(List<LangYaMemorialLight> lightList) {
        this.lightList = lightList;
        setUpdateOption();
    }
}
